package com.chum.chamber.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.ExceptionHandler;

import com.chum.chamber.dao.LoginDAO;
import com.chum.chamber.model.Login;

@Service
public class LoginServiceImpl implements LoginService {

	@Autowired
	private LoginDAO loginDAO;
	
	@Override
	@Transactional
	@ExceptionHandler
	public boolean validateUser(Login login) {
		// TODO Auto-generated method stub
		return loginDAO.validateUser(login);
	}

}
